/**
 * [parseJSON 转换接口response成JSON]
 * @param  {[type]} response [description]
 * @return {[type]}          [description]
 */
export default function parseJSON(response) {
    if ((Object.prototype.toString.call(response) === '[object String]')) {
        return JSON.parse(response);
    }
    return undefined;
}